package models

import (
	"time"
)

type Account struct {
	Id          int64     `orm:"pk;auto" json:"id"`
	SystemName  string    `orm:"size(100)" json:"system_name"`
	Username    string    `orm:"size(100)" json:"username"`
	Password    string    `orm:"size(2000)" json:"password"`
	Remark      string    `orm:"null;type(text)" json:"remark"`
	CreatedTime time.Time `orm:"auto_now_add;type(datetime)" json:"created_time"`
	UpdatedTime time.Time `orm:"auto_now;type(datetime)" json:"updated_time"`
}

func (a *Account) TableName() string {
	return "account"
}
